home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-1.iso
/
utility
/
horst_2.zip
/
SHUTDOWN.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-12-18
|
1KB
|
57 lines
@echo off
cls
::--- A batch file to perform routine housekeeping tasks before shutting
::--- down the computer at the end of the day.
::
::--- check that both floppy disk drives are empty
set drive=A
:AGAIN
dready %drive%
if errorlevel 1 goto NEXT_DRIVE
::
::--- beep; character echoed is Ctrl-G
echo
echo.
echo Please check whether there is a disk in drive %drive%:
pause
goto AGAIN
::
:NEXT_DRIVE
if [%drive%]==[B] goto CONTINUE
set drive=B
goto AGAIN
::
:CONTINUE
set drive=
echo.
::
::--- clear any pending writes-to-disk
echo Flushing the cache ...
smartdrv /C
echo.
::
::--- fr is Norton's Format Recover
echo Saving FAT information, please wait ...
fr /save
echo.
Echo
PLEASE TURN THE PRINTER OFF !
echo.
echo.
pause
echo.
echo.
::--- use some warning colours by ANSI calls
echo
echo ╔═════════════════════════════════════════════════════════════════════════╗
echo ║ When you press another key, the computer will park its hard disk heads. ║
echo ║ Please wait until it reports that this is complete before switching off·║
echo ║ Also, please turn it off at the wall socket (under the table) to ensure·║
echo ║ isolating both computer and modem. Thank you ..·║
echo ╚═════════════════════════════════════════════════════════════════════════╝
echo
echo.
echo.
pause
cd\junk
park